<div class="content-table">
<div class="content-table-title"><?=$this->title?></div>
<br />
<?php if($this->msg):?>
<?=$this->msg?>
<br />
<?php endif;?>
<form action="/bk/level1" method="POST">
渠道：
<select name="channel_id">
	<option value="">全部</option>
	<?php if($this->channels):?>
	<?php foreach($this->channels as $channel_id=>$channel_name):?>
		<option value="<?=$channel_id?>" <?php if($channel_id==$this->channel_id){echo "selected='selected'";}?>><?=$channel_name?></option>
	<?php endforeach;?>
	<?php endif;?>
</select>
&nbsp;&nbsp;&nbsp;&nbsp;
标题：<input type="text" placeholder="标题" name="keyword">&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="button" value="搜索" />&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" class="button-cancle" value="清空搜索条件" onclick="location.href='/bk/level1';" />&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/bk/level1-add">添加</a>
</form>
<br />
<table>
  <tr>
    <th>渠道</th>
    <th>标题</th>
    <th>发起人</th>
    <th>参与人数</th>
    <th>创建时间</th>
    <th>状态</th>
    <th>操作</th>
  </tr>
  <?php if($this->data):?>
  <?php foreach($this->data as $data):?>
  <tr>
    <td><?=$data['channel_name']?></td>
    <td><?=$data['title']?></td>
    <td><?=$data['memo1']?></td>
    <td><?=$data['joined_members']?></td>
    <td><?=$data['ctime']?></td>
    <td><?=($data['status']?"在线":"下线")?></td>
    <td><a href="/bk/level1-edit/id/<?=$data['id']?>">编辑</a>&nbsp;&nbsp;<a href="/bk/level1-refresh/id/<?=$data['id']?>">刷新</a>&nbsp;&nbsp;<a href="/bk/level2/id/<?=$data['id']?>">商户管理</a>&nbsp;&nbsp;<a href="/bk/qr-code/level/1/level_id/<?=$data['id']?>" target="_blank">二维码</a></td>
  </tr>
  <?php endforeach;?>
  <?php endif;?>
</table>
<br /><br />
<div align="right"><?=$this->pagination?></div>